package dto;

public class ReservationStateDTO {
	private String reservation_code;
	private String reservation_content;
	public ReservationStateDTO() {
		super();
	}
	public ReservationStateDTO(String reservation_code,
			String reservation_content) {
		super();
		this.reservation_code = reservation_code;
		this.reservation_content = reservation_content;
	}
	public String getReservation_code() {
		return reservation_code;
	}
	public void setReservation_code(String reservation_code) {
		this.reservation_code = reservation_code;
	}
	public String getReservation_content() {
		return reservation_content;
	}
	public void setReservation_content(String reservation_content) {
		this.reservation_content = reservation_content;
	}
	@Override
	public String toString() {
		return "ReservationStateDTO [reservation_code=" + reservation_code
				+ ", reservation_content=" + reservation_content + "]";
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime
				* result
				+ ((reservation_code == null) ? 0 : reservation_code.hashCode());
		result = prime
				* result
				+ ((reservation_content == null) ? 0 : reservation_content
						.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ReservationStateDTO other = (ReservationStateDTO) obj;
		if (reservation_code == null) {
			if (other.reservation_code != null)
				return false;
		} else if (!reservation_code.equals(other.reservation_code))
			return false;
		if (reservation_content == null) {
			if (other.reservation_content != null)
				return false;
		} else if (!reservation_content.equals(other.reservation_content))
			return false;
		return true;
	}
}
